Skip to content

Improve-unit-handling-hpwh #515

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 39 commits into
base: main
Choose a base branch
from
Open

Improve-unit-handling-hpwh #515

wants to merge 39 commits into from

Conversation

spahrenk
Copy link
Contributor

-Significant overhaul of unit-handling in HPWHsim. Physical quantities are transmitted to/from HPWHsim as objects with a units property. A parameter such as temperature can be specified directly in a function call to HPWHsim using the form {20., Units::C}. A returned quantity is converted to a double of appropriate dimensions using a form such as hw_pHPWH->getTankHeatContent()(Units::kWh).

-Several cse regression tests failed as a result of slight differences in physical constants.

@spahrenk spahrenk self-assigned this Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant